package com.example.controller;

/**
 * Description:
 * User: 阿宾
 * Date: 2025-04-26
 * Time: 19:56
 */

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1(){
        int result = 10 / 0;
        return "t1";
    }
    @RequestMapping("/t2")
    public Boolean t2(){
        String str = null;
        System.out.println(str.length());
        return true;
    }
    @RequestMapping("/t3")
    public Integer t3(){
        return 200;
    }
}

